<template>
	<view class="content-bottom">
		<view class="items" @click="onIcon(item)"  v-for="(item,index) in items" :key="index">
			<u-icon  class="icon"  :name="item.name" :size="item.size?item.size:35" :color="item.color?item.color:'#398ade'"/>
			<text class="text">{{item.text}}</text>
		</view>
	</view>
</template>

<script>
	export default {
		name:"LittleTools",
		props:{
			items:{
				type:Array,
				required:true
			}
		},
		methods:{
			onIcon(item){
				this.$emit("clicked",item)
				
			}
		}
	}
</script>

<style scoped lang="scss">
	.content-bottom {
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: space-evenly;
		margin-top: 7rpx;
		background-color: rgba($u-primary, 0.1);
		color: $font-color;
	
		.items {
			display: flex;
			margin-right: 15rpx;
	
			.text {
				font-size: 14px;
				margin-inline: 5rpx;
			}
			.icon:active{
				scale: 1.2;
			}
		}
	}
</style>